package com.blue.web.sys.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.alibaba.fastjson.JSON;
import com.blue.common.support.BaseController;
import com.blue.facade.sys.user.entity.User;
import com.blue.facade.sys.user.service.UserFacade;

@Controller
@RequestMapping(value="user")
public class UserController extends BaseController {
	
	@Autowired
	private UserFacade userFacade ;

	@RequestMapping(value="main")
	public String main() {
		return viewName("main") ;
	}
	
	@RequestMapping(value="list")
	public Object list() {
		List<User> selectList = this.userFacade.selectList(null);
		System.out.println(JSON.toJSON(selectList));
		return null ;
	}
	
}
